Part Number Hot Search : 
51050 TL22XI 01460 2000A G510262 C5305DF PCA962 TA1635A
Product Description
Full Text Search
 

To Download W65C22S6TPG-14 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  the western design center, inc. w65c22s data sheet the western design center w65c22s 1 w65c22s versatile interface adapter (via) data sheet
the western design center, inc. w65c22s data sheet the western design center w65c22s 2 wdc reserves the right to make changes at any time without notice in order to improve design and supply the best possible product. information contained herein is provided gratuitously and without liability, to any user. reasonable efforts have been made to verify the accuracy of the information but no guarantee whatsoever is given as to the accuracy or as to its applicability to particular uses. in every instance, it must be the responsibility of the user to determine the suitability of the products for each application. wdc products are not authorized for use as critical components in life support devices or systems. nothing contained herein shall be construed as a recommendation to use any product in violation of existing patents or other rights of third parties. the sale of any wdc product is subject to all wdc terms and conditions of sales and sales policies, copies of which are available upon request. copyright ? 1981-2006 by the western design center, inc. all rights reserved, including the right of reproduction, in whole, or in part, in any form.
the western design center, inc. w65c22s data sheet the western design center w65c22s 3 table of contents 1. section 1 w65c22s f unction description ....................................................................... 8 1.1. peripheral data ports .......................................................................................................... ......................8 1.2. data transfer - handshake control .............................................................................................. ........10 1.3. read handshake control. ........................................................................................................ ...............11 1.4. write handshake control. ....................................................................................................... ...............12 1.5. timer 1 op eration .............................................................................................................. .....................14 1.6. timer 1 one- shot mode .......................................................................................................... ................17 1.7. timer 1 free-run mode.......................................................................................................... ................18 1.8. timer 2 op eration. ............................................................................................................. .....................19 1.9. timer 2 one- shot mode .......................................................................................................... ................19 1.10. timer 2 pulse counting mode. ................................................................................................... ............20 1.11. shift register operation....................................................................................................... ...................20 1.12. shift register input modes. .................................................................................................... ................21 1.12.1 shift register disabled (000).................................................................................................. ........................ 21 1.12.2 shift in - counter t2 control (001) ........................................................................................... ..................... 22 1.12.3 shift in - phi2 clock cont rol ( 010) ........................................................................................... ...................... 22 11.12.2. shift in - external cb 1 clock cont rol (011) .................................................................................... .............. 23 1.13. shift register output modes.................................................................................................... ...............23 1.13.1 shift out - free running at t2 rate (100)..................................................................................... ................. 23 1.13.2 shift out - t2 control (101) ................................................................................................... ......................... 24 1.13.3 shift out - phi2 clock cont rol ( 110) .......................................................................................... .................... 24 1.13.4 shift out - external cb1 clock c ontrol (111).................................................................................. .............. 25 1.14. interrupt operation............................................................................................................ ......................25 2. section 2 pin func tion description .............................................................................. 28 2.1 peripheral data port a cont rol lines. (ca1, ca2) .............................................................................31 2.2 peripheral data port b cont rol lines. (cb1, cb2)..............................................................................3 1 2.3 chip select (cs1, cs2b)........................................................................................................ ..................32 2.4 data bus. (d0-d7) .............................................................................................................. ......................32 2.5 interrupt request. (irqb)...................................................................................................... ................32 2.6 peripheral data port a(pa0-pa7) ................................................................................................ .........32 2.7 peripheral data port b (pb0-pb7)............................................................................................... ..........33 2.8 phase 2 internal clock. (phi2) ................................................................................................. ..............34 2.9 reset (resb) .................................................................................................................. .........................34 2.10 register select. (rs0-rs3) ..................................................................................................... .................34 2.11 rwb (read/write) ............................................................................................................... ....................34 2.12 vdd and vss. ................................................................................................................... .......................34
the western design center, inc. w65c22s data sheet the western design center w65c22s 4 3. section 3 timing, ac and dc characteristics ........................................................... 35 3.1 absolute maximum ratings...................................................................................................... .............35 3.2 dc characteristics. ta=-40 c to +85c ..............................................................................................36 3.3 ac characteristic ta=-40 c to +85 c ...............................................................................................37 4. section 4 caveats ............................................................................................................. ........ 44 4.1 caveats ........................................................................................................................ ..............................44 5. section 5 hard core model ................................................................................................ 45 application notes .............................................................................................................. ....................................45 6. section 6 ordering information .................................................................................... 46
the western design center, inc. w65c22s data sheet the western design center w65c22s 5 table of figures figure 1-1 read handshake operation (pa only)................................................................................. ......... 11 figure 1-2 write handshake (pa and pb) ........................................................................................ .................... 12 figure 1-3 one-shot mode (timer 1 and timer 2) ................................................................................ ............... 17 figure 1-4 free-run mode (timer 1) ............................................................................................ ........................... 18 figure1-5 pulse counting mode (timer 2) ....................................................................................... ................... 20 figure 1-6 shift in - counter t2 control ...................................................................................... ..................... 22 figure-1-7 shift in - phi2 clock control ...................................................................................... ...................... 22 figure 1-8 shift in - external cb1 clock control timing ....................................................................... .23 figure 1-9 shift out - free running t2 rate timing ............................................................................ .......... 23 figure 1-10 shift out - t2 control timing..................................................................................... ..................... 24 figure 1-11 shift out - phi2 control timing................................................................................... ................... 24 figure 1-12 shift out - external cb1 clock control timing .................................................................. 25 figure 2-1 pin plcc pinout.................................................................................................... ...................................... 28 figure 2-2 w65c22s 40 pin pdip pinout ......................................................................................... ........................... 29 figure 2-3 w65c22s 44 pin qfp pinout.......................................................................................... ............................ 30 figure 2-4 port a buffer (pa0-pa7, ca2) ....................................................................................... ......................... 33 figure 2-5 port b buffer (pb0-pb7, cb1, and cb2) .............................................................................. ................ 33 figure 3-1 idd vs vdd.......................................................................................................... ........................................... 36 figure 3-2 read timing ........................................................................................................ ......................................... 39 figure 3-3 write timing ........................................................................................................ ........................................ 39 figure 3-4 read handshake, pulse mode (ca2)................................................................................... ............... 40 figure 3-5 read handshake, handshake mode timing (ca2) .................................................................... 40 figure 3-6 write handshake, pulse mode timing (ca2, cb2) ...................................................................... .. 41 figure 3-7 write handshake, handshake mode timing (ca2, cb2) ............................................................ 41 figure 3-8 peripheral data, input latching timing ............................................................................. ......... 42 figure 3-9 data shift out, internal or external shift clock timing ................................................. 42 figure 3-10 data shift in, internal or external shift clock timing ................................................ 42 figure 3-11 pulse count input timing.......................................................................................... ........................ 43 figure 3-12 test load (all dynamic parameters) ................................................................................ ........ 43 figure 4-1 irqb difference .................................................................................................... .................................... 44 figure 4-2 high resistan ce bus holding device ................................................................................. ........... 44
the western design center, inc. w65c22s data sheet the western design center w65c22s 6 table of tables table 1-1 w65c22s memory map of internal registers ............................................................................. ......... 8 table 1-2 orb, irb operat ion for register 0 ($00)............................................................................. ....................... 9 table 1-3 ora, ira operat ion for register 1 ($01) ............................................................................. .................... 10 table 1-4 ddrb, ddra operation ($02,$03)...................................................................................... ............................. 10 table 1-5 ca1, ca2, cb 1, cb2 control1 ($0c)................................................................................... ........................... 12 table 1-6 t1 counter format and operation1 ($04,$05) .......................................................................... ............ 15 table 1-7 t1 latch format and operation1 ($06,$07)............................................................................ ................ 15 table 1-8 auxiliary control regist er format and operation ($0b).......................................................... 16 table 1-9 t2 counter format and operation1 ($08,$09).......................................................................... .......... 19 table 1-10 shift register and auxiliary control register control ($0a).......................................... 21 table 1-11 interrupt flag register ($0d) ...................................................................................... ......................... 26 table 1-12 interrupt enable register ($0e).................................................................................... ....................... 27 table 2-1 pin function table.................................................................................................. ...................................... 31 table 3-1 absolute maximum ratings............................................................................................ ......................... 35 table 3-2 dc characteristics .................................................................................................. ..................................... 36 table 3-3 w65c22s ac characteristics .......................................................................................... ............................ 37 table 3-4 w65c22s ac.......................................................................................................... ................................................. 38
the western design center, inc. w65c22s data sheet the western design center w65c22s 7 introduction the w65c22s versatile interface adapter (via) is a flexible i/o device for use with the w65c series microprocessor family. the w65c22s includes functions for programmed control of two peripheral ports (ports a and b). two program controlled 8-bit bi-directional peripheral i/o ports allow direct interfacing between the microprocessor and selected peripheral units. each port has input data latching capability. two programmable data direction registers (a and b) allow selection of data direction (input or output) on an individual line basis. also provided are two programmable 16-bit interval timer/counters with latches. timer 1 may be operated in a one-shot interrupt mode with interrupts on each count-to-zero, or in a free-run mode with a continuous series of evenly spaced interrupts. timer 2 functions as both an interval and pulse counter. serial data transfers are provided by a serial-to-parallel/parallel-to-serial shift register. application versatility is further increased by various control registers, including an interrupt flag register, an interrup t enable register and two function control registers. the irqb output is an open drain. key features of the w65c22s ? advanced cmos process technology for low power consumption ? compatible with nmos 6522 devices ? low power consumption ? two 8-bit, bi-directional peripheral i/o ports ? two 16-bit programmable interval timer/counters ? serial bi-directional peripheral i/o port ? enhanced "handshake" feature ? latched input/output registers on both i/o ports ? programmable data direction registers ? ttl compatible i/o peripheral lines ? single 1.8v to 5v power supply ? bus compatible with high-speed w65c02s and w65c816s ? register and chip selects specified for multiplexed operation figure 1 w65c22s internal architecture block diagram data bus buffers access control logic rso rs1 rs2 rs3 cs1 cs2b resb phi2 r/wb data bus interupt control ? flags (ifr) ? enable (ier) function control ? peripheral (pcr) ? auxiliary (acr) timer 1 ? latches (t1l-h, t1l-l) ? counters (t1c-h, t1c-l) timer 2 ? latch (t2l-l) ? counters (t2c-h, t2c-l) port b registers ? input latch (irb) ? output (orb) ? data direction (ddrb) serial data shift register (sr) handsha k e control ? port a ? port b port a registers ? input latch (ira) ? output (ora) ?
the western design center, inc. w65c22s data sheet the western design center w65c22s 8 1. section 1 w65c22s function description table 1-1 w65c22s memory map of internal registers register number rs coding register designation description rs3 rs2 rs1 rs0 write read 0 0 0 0 0 orb/irb output register "b" input register "b" 1 0 0 0 1 ora/ira output register "a" input register "a" 2 0 0 1 0 ddrb data direction register "b" 3 0 0 1 1 ddra data direction register "a" 4 0 1 0 0 t1c-l t1 low-order latches t1 low-order counter 5 0 1 0 1 t1c-h t1 high-order counter 6 0 1 1 0 t1l-l t1 low-order latches 7 0 1 1 1 t1l-h t1 high-order latches 8 1 0 0 0 t2c-l t2 low-order latches t2 low-order counter 9 1 0 0 1 t2c-h t2 high-order counter a 1 0 1 0 sr shift register b 1 0 1 1 acr auxiliary control register c 1 1 0 0 pcr peripheral control register d 1 1 0 1 ifr interrupt flag register e 1 1 1 0 ier interrupt enable register f 1 1 1 1 ora/ira same as reg 1 except no "handshake" 1.1. peripheral data ports bo th pa and pb operate in conjunction with a data direction register (ddra or ddrb). under program control, the ddra and ddrb specify which lines within the port bus are to be designated as inputs or outputs. a logic 0 in any bit position of the register will cause the corresponding line to serve as an input, while a logic 1 will cause the line to serve a s an output. when a line is programmed as an output, it is controlled by a corresponding bit in the output register (ora & orb). a logic 1 in the ora or orb will cause the corresponding output line to go high, while a logic 0 will cause the line to go low. under program control, data is written into the ora or orb bit positions corresponding to the output lines which have been programmed as outputs. should data be written into bit positions corresponding to lines which have been programmed as input, the output lines will be unaffected.
the western design center, inc. w65c22s data sheet the western design center w65c22s 9 when reading pa or pb, the contents of the corresponding input register (ira or irb) is transferred onto the data bus. when the input latching feature is disabl ed, ira will reflect the logic levels present on the pa bus lines. however, with input latching enabled and the selected active transition on peripheral a control 1 (ca1) having occurred, ira will contain the data present on the pa bus lines at the time of the transition. in this case, once ira has been read, it will appear transparent, reflecting the current state of the pa bus lines until the next ca1 latching transition. with respect to irb, it operates similar to ira except that for those pb bus lines that have been programmed as outputs, there is a difference. when reading ira, the logic level on the bus line determines whether a logic 1 or 0 is sensed. however, when reading irb, the logic level stored in orb is the logic level sensed. for this reason, those outputs which have large loading effects may cause the reading of ira to result in the reading of a logic 0 when a 1 was actually programmed, and reading logic 1 when a 0 was programmed. however, when reading irb, the logic level read will be correct, regardless of loading on the particular bus line. for information on formats and operation of the pa and pb registers, see tables 1-2, 1-3 & 1-4. note that the input latching modes are controlled by the auxiliary control register (see table 1-8). table 1-2 orb, irb operation for register 0 ($00) 7 6 5 4 3 2 1 0 orb,irb pb7 pb6 pb5 pb4 pb3 pb2 pb1 pb0 pin data direction selection write read ddrb="1" (output) mpu writes output level (orb) mpu reads output register bit in orb. pin level has no effect. ddrb="0" (input) (input latching disabled) mpu writes onto orb, but no effect on pin level, until ddrb changed. mpu reads input level on pb pin. ddrb="0" (input) (input latching enabled) mpu reads irb bit, which is the level of the pb pin at the time of the last cb1 active transition.
the western design center, inc. w65c22s data sheet the western design center w65c22s 10 table 1-3 ora, ira operation for register 1 ($01) 7 6 5 4 3 2 1 0 ora,ira pa7 pa6 pa5 pa4 pa3 pa2 pa1 pa0 pin data direction selection write read ddra="1" (output) (input latching disabled) mpu writes output level (ora) mpu reads level on pa pin. ddra="1" (output) (input latching enabled) mpu reads ira bit which is the level of the pa pin at the time of the last ca1 active transition. ddra="0" (input) (input latching disabled) mpu writes into ora, but no effect on pin level, until ddra changed. mpu read level on pa pin. ddra="0 (input) (input latching enabled) mpu reads ira bit which is the level of the pa pin at the time of the last ca1 active transition. table 1-4 ddrb, ddra operation ($02,$03) 7 6 5 4 3 2 1 0 ddrb,ddra pb7/pa7 pb6/pa6 pb5/pa5 pb4/pa4 pb3/pa3 pb2/pa2 pb1/pa1 pb0/pa0 "0" associated pb/pa pin is an input (high impedance) "1" associated pb/pa pin is an output, whose level is determined by orb/ora bit. 1.2. data transfer - handshake control a powerful feature of the w65c22s is its ability to prov ide absolute control over data transfers between the microprocessor and peripheral devices. this control is accomplished by way of "handshake" lines. pa lines peripheral a control 1,2 (ca1, ca2) handshake data transf ers on both read and write operations, while pb lines peripheral b control 1,2 (cb1, cb2) handsha ke data on write operations only.
the western design center, inc. w65c22s data sheet the western design center w65c22s 11 1.3. read handshake control. read handshaking provides effective control of data tran sfers from a peripheral device to the microprocessor. to accomplish the read handshake, the peripheral device generate s a data ready signal to the w65c22s that indicates valid data is present on pa or pb. in most cases, this data ready signal will interrupt the microprocessor, which will then read the data and generate a data taken signal . once the peripheral senses the data taken signal, new data will be placed on the bus. this process continues until the data transfer is complete. automatic read handshaking applies to pa only. the da ta ready signal is transmitted by the peripheral device over the ca1 interrupt line, while the data taken signal is generated and transmitted to the peripheral device over the ca2 line. when the data ready signal is received, it sets an internal flag in the interrupt flag register (ifr). this flag may interrupt the microprocessor or it may be po lled under program control. as an option, the data taken signal may be either a pulse or a level. in either case, it is set to a logic 0 by the microprocessor and is set by the next data ready signal, see figure 1-1. figure 1-1 read handshake operation (pa only) phi2 ?data ready? (ca1) irqb output read ira operation ?data taken? handshake mode (ca2) ?data taken? pulse mode (ca2)
the western design center, inc. w65c22s data sheet the western design center w65c22s 12 1.4. write handshake control. the write handshake operation is similar to read hands haking. for write handshaking, however, the w65c22s generates the data ready signal and the peripheral device mu st generate the data taken return signal. note that write handshaking may occur on both pa and pb. for a write handshake, ca2 or cb2 serve as the data ready output and can operate in either the handshake mode or the pulse mode. the data taken signal is received the ca1 or cb1. the data taken signal sets a flag in the interrupt flag register and clears the data ready output signal, see figure 1-2. note that the selection of read or write handshake operating modes for ca1, ca2, cb1 and cb2 is accomplished by the peripheral control register (pcr). see table 1-5. figure 1-2 write handshake (pa and pb) table 1-5 ca1, ca2, cb1, cb2 control1 ($0c) 7 6 5 4 3 2 1 0 pcr cb2 control cb1 control ca2 control ca1 control phi2 write ora, orb operation ?data ready? handshake mode (ca2, cb2) ?data ready? pulse mode (ca1.cb1) ?data taken? (ca1,cb1) irqb ouput
the western design center, inc. w65c22s data sheet the western design center w65c22s 13 cb2 control 7 6 5 operation 0 0 0 input-negative active edge 0 0 1 independent interrupt input-negative edge* 0 1 0 input-positive active edge 0 1 1 independent interrupt input-positive edge* 1 0 0 handshake output 1 0 1 pulse output 1 1 0 low output 1 1 1 high output cb1 interrupt control 0 = negative active edge 1 = positive active edge ca2 control 3 2 1 operation 0 0 0 input-negative active edge 0 0 1 independent interrupt input-negative edge* 0 1 0 input-positive active edge 0 1 1 independent interrupt input-positive edge* 1 0 0 handshake output 1 0 1 pulse output 1 1 0 low output 1 1 1 high output ca1 interrupt control 0 = negative active edge 1 = positive active edge
the western design center, inc. w65c22s data sheet the western design center w65c22s 14 * if the ca2/cb2 control in the pcr is selected as "independent " interrupt input, then reading or writing the output register ora/orb will not clear the flag bit. instead, the bit must be cleared by writing into the ifr, as described previously. 1.5. timer 1 operation interval timer 1 (t1) consists of two 8-bit latches and a 16- bit counter. the latches serve to store data which is to be loaded into the counter. once the counter is loaded unde r program control, it decrements at phase 2 clock rate. upon reaching zero, bit 6 of the interrupt flag register (ifr ) is set, causing interrupt request (irqb) to go to a logic 0 if the corresponding bit in the interrupt enable regi ster (ier) is set. once the timer reaches a count of zero, it will either disable any further interrupts (provided it has been programmed to do so), or it will automatically transfer the contents of the latches into the counter a nd proceed to decrement again. the counter may also be programmed to invert the output signal on pb7 each time it reaches a count of zero. each of these counter modes is presented below. the t1 counter format and operation is shown in table 1-6, with corresponding latch format and operation in table 1-7. additional control bits are provided in the auxiliary control register (acr) bits 6 and 7 to allow selection of t1 operating modes. the four available modes are shown in table 1-8.
the western design center, inc. w65c22s data sheet the western design center w65c22s 15 table 1-6 t1 counter format and operation1 ($04,$05) 7 6 5 4 3 2 1 0 t1l 128 64 32 16 8 4 2 1 write - 8 bits loaded into t1 low-order latches. latch contents are transferred into low-order counter at the time the high-order counter is loaded. read - 8 bits from t1 low-order counter transferred to mpu. t1 interrupt flag ifr6 is reset. 7 6 5 4 3 2 1 0 t1h 32,768 16,384 8,192 4,096 2,048 1,024 512 256 write - 8 bits loaded into t1 high-order latches. also, both high and low-order latches are transferred into t1 counter and this initiates countdown. t1 interrupt flag ifr6 is reset. read - 8 bits from t1 high-order counter transferred to mpu. table 1-7 t1 latch format and operation1 ($06,$07) 7 6 5 4 3 2 1 0 t1l 128 64 32 16 8 4 2 1 write - 8 bits loaded into t1 low-order latches. this operation is no different than a write into thet1 low order register. read - 8 bits from t1 low-order latches transferred to mpu. unlike reading the t1 low order register, this does not cause reset of t1 interrupt flag ifr6. 7 6 5 4 3 2 1 0 t1h 32,768 16,384 8,192 4,096 2,048 1,024 512 256 write - 8 bits loaded into t1 high-order latches. unlike writing to the t1 low order register, no latch- to-counter transfers take place. t1 interrupt flag ifr6 is reset. read - 8 bits from t1 high-order counter transferred to mpu.
the western design center, inc. w65c22s data sheet the western design center w65c22s 16 table 1-8 auxiliary control register format and operation ($0b) 7 6 5 4 3 2 1 0 acr t1 timer control t2 timer control shift register control pb pa t1 timer control 7 6 operation pb7 0 0 timed interrupt each time t1 is loaded disabled 0 1 continuous interrupts 1 0 timed interrupt each time t1 is loaded one shot output 1 1 continuous interrupts square wave output t2 timer control 5 operation 0 timed interrupt 1 count down with pulses on pb6 shift register control 4 3 2 operation 0 0 0 disabled 0 0 1 shift in under control of t2 0 1 0 shift in under control of phi2 0 1 1 shift in under control of external clock 1 0 0 shift out free-running at t2 rate 1 0 1 shift out under control of t2 1 1 0 shift out under control of phi2 1 1 1 shift out under control of external clock latch enable/disable 1 0 operation 0 0 disable 1 1 enable latching
the western design center, inc. w65c22s data sheet the western design center w65c22s 17 it should be noted that the microprocessor does not write direct ly into the t1 low-order counter. instead, this half of the counter is loaded automatically fro m the low-order register when the micr oprocessor writes into the high-order register and counter. in fact, it may not be necessary to write to the low-order register in some applications since the timing operation is triggered by writing to the high-order register and counter. 1.6. timer 1 one-shot mode interval timer t1 may operate in the one-shot mode that allows the generation of a single interrupt flag each time the timer is loaded. the timer can also be programmed to produce a single negative pulse on data port line pb7. to generate a single interrupt, it is required that bits 6 a nd 7 of the acr be a logic 0. the low-order t1 counter or the low-order t1 latch must then be lo aded with the low-order count value. note that a load to a low-order t1 counter is effectively a load to a low-order t1 latch . next, the high-order count value must be loaded into the high-order t1 counter, at which time the value is simultane ously loaded into the high-order t1 latch. during this load sequence, the contents of low-order t1 latch is tr ansferred to low-order t1 counter. the counter will start counting down on the next phi2 clock following the load sequence into high-order t1 counter, and will decrement at the phi2 clock rate. once the t1 counter reaches a zero count, the interrupt flag is set. to generate a negative pulse on pb7, the sequence is identical to the above except acr7 must be a logic 1. pb7 will then go to a logic 0 following the load to high-order t1 counter, and will go to a logic 1 again when the counter reaches a zero count. once set, ifr6 the t1 interrupt flag is reset by either writing high-order t1 latch, or by reading low-order t1 counter, see figure 1-3. t1 count t2 count figure 1-3 one-shot mode (timer 1 and timer 2) pb7 output (t1, only) irqb output write t1c-h operation phi2 n n-1 n-2 n-3 0 ffff n n-1 n-2 n n-1 n-2 n-3 0 ffff fffe fffd fffc n + 1.5 cycles
the western design center, inc. w65c22s data sheet the western design center w65c22s 18 1.7. timer 1 free-run mode an important advantage within the w65c22s is the ability of the latches associated with the t1 counter to provide a continuous series of evenly spaced interrupts or a square wave on pb7. it should also be noted that the continuous series of interrupts and square waves are not affected by variations in the microprocessor interrupt response time. these advantages are all produced in the free-run mode. when operating in the free-run mode, the interrupt flag is set and the signal on pb7 is inverted each time the counter reaches a count of zero. in the free-run mode, however, the counter does not continue to decrement after reaching a zero count. instead, the counter automatically transfers to contents of the latch into the counter (16 bits ) and then decrements from the new count value. as can be seen, it is not necessary to reload the timer in order to set the interrupt flag on the next count of zero. when set, the interrupt flag can be cleared by either reading low-order t1 counter or by writing directly into the ifr as will be discussed later, or by writing into high-order t1 latch. since the interval timers are all re-triggerable, reloading the counter will always reinitialize the time-out period. should the microprocessor continue to reload the counter be fore it reaches zero, counter time-out can be prevented. timer 1 is able to operate in this manner provided the mi croprocessor writes into the high-order counter. by loading the latches only, the microprocessor can access the timer during each countdown operation without affecting the time-out in progress. in this way, da ta loaded into the latches will determ ine the length of the next subsequent time-out period. this capability is of value in the free-run mode with the output enabled. in the free-run mode, the signal on pb7 is inverted and ifr6 is set with each counter time-out. when the microprocessor responds to the interrupts with new data for the latches, it can determine the period of the next half-cycle during each half-cycle of the output signal on pb7. in this way, comple x waveforms can be generated. see figure 1-4. figure 1-4 free-run mode (timer 1) n + 1.5 cycles n + 2 cycles phi2 write t1c-h operation irqb output pb7 output
the western design center, inc. w65c22s data sheet the western design center w65c22s 19 1.8. timer 2 operation. timer 2 (t2) operates in the one-shot mode only (as an interval timer), or as a pulse counter for counting negative pulses on pb6. a single control bit within acr5 is used to select between these two modes. t2 is made up of a write-only low-order t2 latch, a read-only low-order t2 counter, and a read/write high-order t2 counter. this 16-bit counter decrements at a phi2 clock rate. see table 1-9. table 1-9 t2 counter format and operation1 ($08,$09) 7 6 5 4 3 2 1 0 t2l 128 64 32 16 8 4 2 1 write - 8 bits loaded into t2 low-order latches. read - 8 bits from t2 low-order counter transferred to mpu. ifr5 is reset. 7 6 5 4 3 2 1 0 t2h 32,768 16,384 8,192 4,096 2,048 1,024 512 256 write - 8 bits loaded into t2 high-order counter. also, low- order latches are transferred to low order counter. ifr5 is reset. read - 8 bits from t2 high-order counter transferred to mpu. 1.9. timer 2 one-shot mode operation of timer 2 in the one-shot mode is similar to timer 1. that is, for each load high-order t2 counter operation, timer 2 sets ifr5 for each countdown to zero. however, after a time-out, the t2 counters roll over to all 1's ($ffff) and continues to decrement. this two's complement decrement allows the user to determine how long ifr5 has been set. since the interrupt flag logic is di sabled after the initial interrupt set (zero count), further interrupts cannot be set by a subsequent count to zero. to enable the interrupt flag logic, the microprocessor must reload high-order t2 counter. the interrupt flag is clear ed by either reading low-order t2 counter or by loading high-order t2 counter. see figure 1-3.
the western design center, inc. w65c22s data sheet the western design center w65c22s 20 1.10. timer 2 pulse counting mode. in the pulse counting mode, timer 2 counts a predeter mined number of negative-going pulses on pb6. to accomplish this, a count number is loaded into high-order t2 counter, which clears ifr5 logic and starts the counter to decrement each time a negative pulse is applied to pb6. when the t2 counter reaches a count of zero, ifr5 is set and the counter continues to decrement with each pulse on pb6. to enable ifr5 for subsequent countdowns, it is necessary to reload high-order t2 counter. the decrem ent pulse on line pb6 must be a logic 0 during the leading edge of the phi2 clock. see figure 1-5. n n-1 n-2 2 1 0 figure1-5 pulse counting mode (timer 2) 1.11. shift register operation the shift register (sr) performs bi-directional serial da ta transfers on line cb2. these transfers are controlled by an internal modulo-8 counter. shift pulses can be applied to the cb1 line from an external source, or (with proper mode selection) shift pulses may be generated internally which will appear on the cb1 line for controlling external devices. each sr operating mode is controlled by contro l bits within the acr. see table 1-10 for control bit information. see also figures 1-6 through 1-12. write t2c-h operation pb6 output irqb output
the western design center, inc. w65c22s data sheet the western design center w65c22s 21 table 1-10 shift register and auxiliary control register control ($0a) 7 6 5 4 3 2 1 0 sr sr7 sr6 sr5 sr4 sr3 sr2 sr1 sr0 7 6 5 4 3 2 1 0 acr shift register mode control shift register control 4 3 2 operation 0 0 0 disabled 0 0 1 shift in under control of t2 0 1 0 shift in under control of phi2 0 1 1 shift in under control of external clock (cb1) 1 0 0 shift out free-running at t2 rate 1 0 1 shift out under control of t2 1 1 0 shift out under control of phi2 1 1 1 shift out under control of external clock (cb1) notes: 1. when shifting out, bit 7 is the first bit out and simultaneously is rotated back into bit 0. 2. when shifting in, bits initially enter bit 0 and are shifted towards bit 7. 1.12. shift register input modes. 1.12.1 shift register disabled (000) in the 000 mode, the sr is disabled from all operation. the microprocessor can read or write the sr, but shifting is disabled and both cb1 and cb2 are controlled by bits in the pcr. the shift register interrupt flag (ifr2) is held low (disabled).
the western design center, inc. w65c22s data sheet the western design center w65c22s 22 1.12.2 shift in - counter t2 control (001) in this mode, the shifting rate is controlled by the low order eight bits of counter t2. shift pulses are generated on the cb1 line to control shifting in external devices. the time between transitions of the cb1 output clock is determined by the phi2 clock period and the contents of the low-order t2 latch (n). shifting occurs by writing or reading the sr. data is sh ifted into the low-order bit first, and is then shifted into the next higher order bit on the negative-going edge of each clock pulse. input data should change before the positive-going edge of the cb1 clock pulse. th is data is then shifted into the sr during the phi2 clock cycle following the positive-going edge of the cb1 clock pulse. after eight cb1 clock pulses, ifr2 will set and irqb will go to a logic 0. see figure 1-6. figure 1-6 shift in - counter t2 control 1.12.3 shift in - phi2 clock control (010) in this mode, the shift rate is controlled by the phi2 clock frequency. shift pulses are generated on the cb1 line to control shifting in external devices. timer 2 operates as an independent interval time and has no influence on the sr. shifting occurs by reading or wr iting the sr. data is shifted into the low order bit first, and is then shifted into the next higher order bit on the trailing edge of the phi2 clock pulse. after eight clock pulses, ifr2 ill be set, and output clock pulses on the cb1 line will stop. see figure 1-7. figure-1-7 shift in - phi2 clock control phi2 write or read shift reg cb1 output shift clock cb2 input data irqb n + 2 cycles n + 2 cycles 2 1 1 2 3 3 8 8 phi2 read sr operation cb1 output shift clock cb2 input data irqb 1 2 34 5 6 7 8
the western design center, inc. w65c22s data sheet the western design center w65c22s 23 11.12.2. shift in - external cb1 clock control (011) in this mode, cb1 serves as an input to the sr. in th is way, an external device can load the sr at its own pace. the sr counter will interrupt the microprocessor after each eight bits have been shifted in. the sr counter does not stop the shifting opera tion. its function is simply that of a pulse counter. reading or writing the sr resets ifr2 and initializes the counter to c ount another eight pulses. note that data is shifted during the first phi2 clock cycle following the positive-going edge of the cb1 shift pulse. for this reason, data must be held stable during the first full cycle following cb1 going high. see figure 1-8. figure 1-8 shift in - external cb1 clock control timing 1.13. shift register output modes. 1.13.1 shift out - free running at t2 rate (100) this mode is similar to mode 101 in which the shifting rate is determined by t2. however, in mode 100 the sr counter does not stop the shifting operation. since sr7 is re-circulated back into sr0, the eight bits loaded into the sr will be clocked onto the cb2 line repe titively. in this mode, the sr counter is disabled and irqb is never set. see figure 1-9. figure 1-9 shift out - free running t2 rate timing phi2 cb1 input shift clock cb2 input data irqb phi2 write sr operation cb1 output shift clock cb2 output data n + 2 cycles 1 2 1 2 3 3 4 4 8 8 9 1 1 2 3 4 8 1 2 3 4 8 n + 2 cycles
the western design center, inc. w65c22s data sheet the western design center w65c22s 24 1.13.2 shift out - t2 control (101) in this mode, the shift rate is controlled by t2 (as in mode 100). however, with each read or write of the sr counter is reset and eight bits are shifted onto th e cb2 line. at the same time, eight shift pulses are placed on the cb1 line to control shifting in external de vices. after the eight shift pulses, the shifting is disabled, ifr2 is set, and cb2 will remain at the last data level. see figure 1-10. figure 1-10 shift out - t2 control timing 1.13.3 shift out - phi2 clock control (110) in this mode, the shift rate is controlled by the system phi2 clock. see figure 1-11. figure 1-11 shift out - phi2 control timing n + 2 cycles 1 2 1 2 3 3 8 8 n + 2 cycles phi2 write sr operation cb1 output shift clock cb2 output data irqb phi2 write sr operation cb1 output shift clock cb2 output data 1 2 1 2 3 3 4 4 8 8 7 7 irqb
the western design center, inc. w65c22s data sheet the western design center w65c22s 25 1.13.4 shift out - external cb1 clock control (111) in the mode, shifting is controlled by external pulses ap plied to the cb1 line. the sr counter sets ifr2 for each eight-pulse count, but does not di sable the shifting function. each time the microprocessor reads or writes the sr, ifr2 is reset and the counter is initializ ed to begin counting the next eight pulses on the cb1 line. after eight shift pulses, ifr2 is set. the micropr ocessor can then load the sr with the next eight bits of data. see figure 1-12. figure 1-12 shift out - external cb1 clock control timing 1.14. interrupt operation there are three basic interrupt operations, including: setting the interrupt flag within ifr, enabling the interrupt by way of a corresponding bit in the ier, and signaling the mi croprocessor using irqb. an interrupt flag can be set by conditions internal to the chip or by inputs to the chip from external sources. normally, an interrupt flag will remain set until the interrupt is servi ced. to determine the source of an in terrupt, the microprocessor must examine each flag in order, from highest to lowest priority. this is accomplished by reading the contents of the ifr into the microprocessor accumulator, shifting the c ontents either left or right and then using conditional branch instructions to detect an active interrupt. each interrupt flag has a corresponding interrupt enable bit in the ier. the enable bits are controlled by the microprocessor (set or reset). if an interrupt flag is a logic 1, and the corresponding interrupt enable bit is a logic 1, the irqb will go to a lo gic 0. irqb is a full output driver that allows both logic 1 and logic 0 levels. the older nmos and cmos irqb output was open drain pull down only. the irqb output cannot be wired-ored with other devices. all interrupt flags are contained within a single ifr. bit 7 of this register will be logic 1 whenever an interrupt flag is set, thus allowing convenient polling of several devices within a system to determine the source of the interrupt. phi2 clock write sr operation cb1 output shift clock cb2 output data 1 2 1 2 8 8 irqb
the western design center, inc. w65c22s data sheet the western design center w65c22s 26 the ifr and ier format and operation is shown in tables 1-11 and 1-12. the ifr may be read directly by the microprocessor, and individual flag bits may be cleared by writing a logic 1 into the appropriate bit of the ifr. bit 7 of the ifr indicates the status of the irqb output. bit 7 corresponds to the following logic function: irq = ifr6 ier6 ifr5 ier5 ifr4 ier4 ifr3 ier3 ifr2 ier2 ifr1 ier1 ifr0 ier0. note: = logical and, = logical or. ifr7 is not a flag. therefore, ifr7 is not directly cleared by writing a logic 1 into its bit position. it can be cleared, however, by clearing all the flags within the register, or by disabling all active interrupts as presented in the next section. each interrupt flag within the ifr has a corresponding enab le bit in ier. the microprocessor can set or clear selected bits within the ier. this allows the control of individual interrupts without affecting others. to set or clear a particular interrupt enable bit, the microprocessor must write to the ier address. during this write operation, if ier7 is a logic 0, each logic 1 in ier6 thru ier0 will cl ear the corresponding bit in the ier. for each logic 0 in ier6 thru ier0, the corresponding bit in the ier will be unaffected. setting selected bits in the ier is accomplished by writing to the same address with ier7 set to a logic 1. in this case, each logic 1 in ier6 through ier0 will set the corresponding bit to a logic 1. for each logic 0 the corresponding bit will be unaffected. this method of control ling the bits in the ier allo ws convenient user control of interrupts during system operation. the microprocessor can also read the contents of the ier by placing the proper address on the register select and chip select inputs with the rwb line high. ier7 will be read as a logic 1. table 1-11 interrupt flag register ($0d) 7 6 5 4 3 2 1 0 ifr irq timer1 timer2 cb1 cb2 shift register ca1 ca2
the western design center, inc. w65c22s data sheet the western design center w65c22s 27 set by cleared by ca2 active edge read or write (ora*) ca1 active edge read or write (ora*) complete 8 shifts read or write shift reg. cb2 active edge read or write orb* cb1 active edge read or write orb time-out of t2 read t2 low or write t2 high time-out of t1 read t1c-l low or write t1l-h high any enabled interrupt clear all interrupts * if the ca2/cb2 control in the pcr is selected as "independent" interrupt input, then reading or writing the output register ora/orb will not clear the flag bit. instead, the bit must be cleared by writing into the ifr, as described previously. table 1-12 interrupt enable register ($0e) 7 6 5 4 3 2 1 0 ier set/clear timer1 timer2 cb1 cb2 shift register ca1 ca2 0=interrupt disabled 1=interrupt enabled notes: 1. if bit 7 is a "0", then each logic 1 in bits 0-6 disables the corresponding interrupt. 2. if bit 7 is a "1", then each logic 1 in bits 0-6 enables the corresponding interrupt. 3. if a read of this register is done, bit 7 will be logi c 1 and all other bits will reflect their enable/disable state.
the western design center, inc. w65c22s data sheet the western design center w65c22s 28 2. section 2 pin function description figure 2-1 pin plcc pinout rs3 nc resb d0 d1 d2 nc d3 d4 d5 d6 pa5 pa6 pa7 pb0 nc pb1 pb2 pb3 pb4 pb5 pb6 7 8 9 10 11 12 13 14 15 16 17 39 38 37 36 35 34 33 32 31 30 29 pa4 pa3 pa2 pa1 pa0 vss ca1 ca2 rs0 rs1 rs2 pb7 cb1 cb2 vdd nc irqb rwb cs2b cs1 phi2 d7 w65c22s 18 19 20 21 22 23 24 25 26 27 28 6 5 4 3 2 1 44 43 42 41 40
the western design center, inc. w65c22s data sheet the western design center w65c22s 29 vss pa0 pa1 pa2 pa3 pa4 pa5 pa6 pa7 pb0 pb1 pb2 pb3 pb4 pb5 pb6 pb7 cb1 cb2 vdd 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 ca1 ca2 rs0 rs1 rs2 rs3 resb d0 d1 d2 d3 d4 d5 d6 d7 phi2 cs1 cs2b rwb irqb figure 2-2 w65c22s 40 pin pdip pinout w65c22s
the western design center, inc. w65c22s data sheet the western design center w65c22s 30 figure 2-3 w65c22s 44 pin qfp pinout pa5 pa6 pa7 pb0 nc pb1 pb2 pb3 pb4 pb5 pb6 1 2 3 4 5 6 7 8 9 10 11 pa4 pa3 pa2 pa1 pa0 vss ca1 ca2 rs0 rs1 rs2 44 43 42 41 40 39 38 37 36 35 34 rs3 nc resb d0 d1 d2 nc d3 d4 d5 d6 33 32 31 30 29 28 27 26 25 24 23 12 13 14 15 16 17 18 19 20 21 22 pb7 cb1 cb2 vdd nc irqb rwb cs2b cs1 phi2 d7 w65c22s
the western design center, inc. w65c22s data sheet the western design center w65c22s 31 table 2-1 pin function table pin description ca1, ca2 peripheral a control lines cb1, cb2 peripheral b control lines cs1, cs2b chip select d0-d7 data bus irqb interrupt request pa0-pa7 peripheral i/o port a pb0-pb7 peripheral i/o port b phi2 phase 2 internal clock resb reset rs0-rs3 register select r/wb read/write vdd positive power supply (+5v) vss internal logic ground 2.1 peripheral data port a control lines. (ca1, ca2) ca1 and ca2 serve as interrupt inputs or handshake outputs for pa. each line controls an internal interrupt flag with a corresponding interrupt enable b it. ca1 also controls the latching of input data on pa. ca1 and ca2 are high impedance cmos inputs with a bus holding device . in the output mode, ca2 will drive one standard ttl load. 2.2 peripheral data port b control lines. (cb1, cb2) cb1 and cb2 serve as interrupt inputs or handshake outputs for pb. like pa , these two control lines control an internal interrupt flag with a correspondi ng interrupt enable bit. these lines also serve as a serial data port under control of the sr. each control line re presents a cmos input with a bus holding device in the input mode and can drive one ttl load in the output mode.
the western design center, inc. w65c22s data sheet the western design center w65c22s 32 2.3 chip select (cs1, cs2b) normally, cs1 and cs2b are connected to the microprocesso r address lines. this connection may be direct or through decoding. to access a selected w65c22s register , cs1 must be a logic 1 and cs2b must be a logic 0. these pins have a bus holding device . 2.4 data bus. (d0-d7) the eight bi-directional lines d0-d7 are used to transf er data between the w65c22s and the microprocessor. during a read operation, the contents of the selected w65c22s internal register are transferred to the microprocessor via d0-d7. during a write operation, d0-d7 serve as high impedance inputs over which data is transferred from the microprocessor to a selected w65c22s register. d0-d7 are in the high impedance state when the w65c22s is unselected but each pin has a bus holding device , in case the bus tries to float, the data bus will be held in it's previous state. 2.5 interrupt request. (irqb) the irqb output signal is a logic 0 whenever an inte rnal interrupt flag bit is set to a logic 1 and the corresponding interrupt enable bit is a logic 1. the irqb output is a full output driv er that outputs both logic 1 and logic 0 levels. the older nmos and cmos irqb output was open-drain pull down only, thus allowing the irqb signal to be wire-0red to a common microprocesso r irqb input line. the w65c22s irqb cannot be wire- ored. 2.6 peripheral data port a(pa0-pa7) pa is an 8-line, bi-directional bus used for the transf er of data, control and status information between the w65c22s and a peripheral device. each pa bus line may be individually programmed as either an input or output under control of ddra. data flow di rection may be selected on a line-by- line basis with intermixed input and output lines within the same port. when a logic 0 is written to any bit position of ddra, the corresponding line will be programmed as an input. likewise, when a logic 1 is written into any bit position of the register, the corresponding data line will serve as an output. polarity of the data output is determined by the ora, while input data may be latched into the ira under control of the ca 1 line. all modes are program controlled by way of the w65c22s's internal control registers. each pa line repr esents a cmos capacitive load in the input mode and will drive one standard ttl load in the output mode. a typical output circuit for pa is s hown in figure 2-4. the pa data port has improved high impedance cmos inputs, bus holding devices and high speed cmos output drive for logic 1 level . this allows for higher speed operation no longer dependent on the rc time constant of older nmos and cmos designs.
the western design center, inc. w65c22s data sheet the western design center w65c22s 33 bus holding device figure 2-4 port a buffer (pa0-pa7, ca2) 2.7 peripheral data port b (pb0-pb7) pb is an 8-line, bi-directional bus which is controlled by an ora, irb, and ddrb in a manner much the same as pa. with respect to pb, the output signal on line pb7 may be controlled by timer 1 while timer 2 may be programmed to count pulses on the pb6 line. pb lines represent one cmos high impedance load with bus holding device in the input mode and will drive one ttl load in the output mode. pb lines are also capable of sourcing 3.0 ma at 1.5 vdc in the output mode. this allows the output to directly drive darlington transistor circuits. a typical output circuit for pb is shown in figure 2-5. bus holding device figure 2-5 port b buffer (pb0-pb7, cb1, and cb2) ddr output data p n pin input ddr output data p n pin input (input mode) input (output mode)
the western design center, inc. w65c22s data sheet the western design center w65c22s 34 2.8 phase 2 internal clock. (phi2) the system phi2 input clock controls all data transfers between the w65c22s and the microprocessor. 2.9 reset (resb) reset clears all internal registers (except t1 and t2 counters an d latches, and the sr. in the resb condition, all pins are placed in the input state and bus holding devices maintain initial level if not driven. the initial level can be logic 1 or logic 0 and are not initialized by on-chip circuitry. also, t1 and t2, sr and the interrupt logic are disabled from operation. all inputs have nor gates with reset overriding the input pi n value. schmitt trigger nor gates are on ca1, ca2, db1, cb2, and ph2. reset has a schmitt trigger inverter input. the resb input has a bus holding device . 2.10 register select. (rs0-rs3) the rs0-rs3 inputs allow the microprocessor to select one of 16 internal registers within the w65c22s. refer to table 1 for register select coding and a functional description. rs0-rs3 have bus holding devices . 2.11 rwb (read/write) the rwb signal is generated by the microprocessor and is used to control the transfer of data between the w65c22s and the microprocessor. when rwb is at a logic 1 and the chip is selected, data is transferred from the w65c22s to the microprocessor (read operation). conversely, when rwb is at a logic 0, data is transferred from the processor to the selected w65c22s register (write ope ration). rwb must always be preceded by a proper level on cs1, cs2b. rwb has a bus holding device . 2.12 vdd and vss. vdd is the positive supply voltage and vss is system logic ground.
the western design center, inc. w65c22s data sheet the western design center w65c22s 35 3. section 3 timing, ac and dc characteristics 3.1 absolute maximum ratings. table 3-1 absolute maximum ratings rating symbol value supply voltage vdd -0.3 to +7.0v input voltage vin -0.3 to vdd +0.3v storage temperature ts -55 c to +150 c this device contains input protection against damage due to high static voltages or electric fields; however, precautions shoul d be taken to avoid application of voltages higher than the maximum rating. note: exceeding these ratings may result in permanent damage. functional operation under these conditions is not implied.
the western design center, inc. w65c22s data sheet the western design center w65c22s 36 3.2 dc characteristics. ta=-40 c to +85c table 3-2 dc characteristics 5.0 +/-5% 3.3+/-10% 3.0+/-5% 2.5+/-5% 1.8+/-5% symbol parameter min max min max min max min max min max units vdd supply voltage 4.75 5.25 3.0 3.6 2.85 3.75 2.37 2.63 1.71 1.89 v vih input high voltage - all inputs vddx0.7 vdd+0.3 vddx0.7 vdd+0.3 vddx0.7 vdd+0.3 vddx0.7 vdd+0.3 vddx0.7 vdd+0.3 v vil input low voltage - all inputs vss-0.3 vddx0.3 vss-0.3 vssx0.3 vss-0.3 vddx0.3 vss-0.3 vddx0.3 vss-0.3 vddx0.3 v iin input leakage current, vin = 0.4v to 2.4v for phi2 -20 20 -20 20 -20 20 -20 20 -20 20 na iinh input bus holding current vin = vddx0.7 all pins except phi2,irqb,vdd,vss -5 -10 -4 -7 -4 -6 -1 -3 -1.5 -2 a iinl input bus holding current vin = vddx0.3 all pins except phi2,irqb,vdd,vss 10 20 6 9 4 7 3.5 5 .5 1.5 a iol output low voltage (vol = 0.4v)(vdd=min) all outputs 1.6 - 1.6 - 1.6 - 1.0 - 0.5 - ma ioh output high voltage (voh=vdd-0.4v) (vdd=mn) all outputs 700 - 350 - 300 - 200 - 100 - a ioh output high current (sourcing) voh=1.5v direct transistor drive - all outputs -3.0 -10.0 -3.0 -10.0 -2.0 -7.0 -1.5 -5.0 -1.0 -4.0 ma idd supply current (with tester loading) (1) supply current (core) (1) - - 0.5 0.2 - - 0.4 0.15 - - 0.35 0.125 - - 0.3 0.10 - - 0.25 0.08 ma/ mhz cin* input capacitance, f = 1 mhz - 5.0 - 5.0 - 5.0 - 5.0 - 5.0 pf cout* output capacitance, f = 1 mhz - 5.0 - 5.0 - 5.0 - 5.0 - 5.0 pf *tested on a sample basis only (1) these are estimated power characteristics and will be updated after characterization. vdd (volts) figure 3-1 idd vs vdd typical 0.6u processed device 1 mhz operation@85 c ? ? ? ? idd (ma) (1) (with tester loading) ? (core power only) vdd (volts) f max (mhz) typical 0.6u processed device @85 c 0 1 2 3 4 5 6 1.2 1.1 1.0 0.9 0.8 0.7 0.6 0.5 0.4 0.3 0.2 0.1 0.0 0 2 4 6 8 10 12 14 16 18 20 6.0 5.5 5.0 4.5 4.0 3.5 3.0 2.5 2.0 1.5 1.0 0.0
the western design center, inc. w65c22s data sheet the western design center w65c22s 37 3.3 ac characteristic ta=-40 c to +85 c table 3-3 w65c22s ac characteristics processor interface timing 5.0+/-5% 3.3 +/-10% 3.0+/-5% 2.5+/-5% 1.8+/-5% min max min max min max min max min max symbol parameter 14 mhz 10 mhz 8 mhz 4 mhz 2mhz units tcyc cycle time 70 - 100 - 125 - 250 - 500 - ns tpwh phase 2 pulse width high 35 - 50 - 62 - 125 - 250 - ns tpwl phase 2 pulse width low 35 - 50 - 63 - 125 - 250 - ns tr,f phase 2 transition - 5 - 5 - 5 - 5 - 5 ns acr select, rwb setup 10 - 10 - 10 - 20 - 40 - ns tcar select, rwb hold (phi2 rising edge) 10 - 10 - 10 - 10 - 10 - ns tcdr data bus delay - 20 - 25 - 35 - 80 - 180 pf thr data bus hold time 10 - 10 - 10 - 10 - 10 - ns tpcr peripheral data setup 10 - 10 - 30 - 60 - 120 - ns tacw select, rwb setup 10 - 10 - 10 - 20 - 90 - ns tcaw select, rwb hold (phi2 rising edge) 10 - 10 - 10 - 10 - 10 - ns tdcw data bus setup 10 - 10 - 10 - 20 - 40 - ns thw data bus hold 10 - 10 - 10 - 10 - 10 - ns tcpw peripheral data delay - 30 - 50 - 60 - 120 - 240 ns
the western design center, inc. w65c22s data sheet the western design center w65c22s 38 table 3-4 w65c22s ac peripheral interface timing 5.0+/-5% 3.3 +/-10% 3.0+/-5% 2.5+/-5% 1.8+/-5% min max min max min max min max min max symbol parameter 14 mhz 10 mhz 8 mhz 4 mhz 2 mhz unit figure tr, tf rise & fall time for ca1, cb1, ca2 and cb2 input signals - 70 - 100 - 125 - 250 - 500 ns - tca2 delay time, clock negative transition to ca2 negative transition (read handshake or pulse mode - 75 - 105 - 130 - 255 - 505 ns 3-3 3-4 trs1 delay time, clock negative transition to ca2 positive transition (pulse mode) - 75 - 105 - 130 - 255 - 505 us 3-3 trs2 delay time, ca1 active transition to ca2 positive transition (read handshake mode) - 100 - 135 - 160 - 285 - 535 ns 3-4 twhs delay time, clock positive transition to ca2 or cb2 negative transition (write handshake) - 75 - 105 - 130 - 255 - 505 ns 3-5 3-6 tds delay time, peripheral data valid to cb2 negative transition - 100 - 135 - 160 - 285 - 535 ns 3-5 3-6 trs3 delay time, clock positive transition to ca2 or cb2 positive transition (write pulse mode) - 150 - 220 - 270 - 520 - 1020 ns 3-5 trs4 delay time, ca1 or cb1 active transition to ca2 or cb2 positive transition (handshake mode) - 88 - 125 - 160 - 285 - 535 ns 3-6 t21 delay time required from ca2 output to ca1 active transition (write handshake mode) - 88 - 125 - 160 - 285 - 535 ns 3-6 til set-up time, peripheral data valid to ca1 or cb1 active transition (input latching) 62 - 92 - 115 - 240 - 490 - ns 3-7 tsr1 shift-out delay time - time from phi2 falling edge to cb2 data out - 35 - 43 - 70 - 130 - 260 ns 3-8 tsr2 shift-in set-up time - time from cb2 data in to phi2 rising edge 105 - 155 - 195 - 380 - 780 - ns 3-9 tsr3 external shift clock (cb1) set-up time relative to phi2 trailing edge 0 tcyc 0 tcyc 0 tcyc 0 tcyc 0 tcyc ns 3-9 tipw pulse width - pb6 input pulse 2x tcyc - 2x tcyc - 2x tcyc - 2x tcyc - 2x tcyc - ns 3-11 ticw pulse width - cb1 input clock 2x tcyc - 2x tcyc - 2x tcyc - 2x tcyc - 2x tcyc - ns 3-10 tips pulse spacing - pb6 input pulse 2x tcyc - 2x tcyc - 2x tcyc - 2x tcyc - 2x tcyc - ns 3-11 tics pulse spacing - cb1 input pulse 2x tcyc - 2x tcyc - 2x tcyc - 2x tcyc - 2x tcyc - ns 3-10 tal ca1, cb1 set up prior to transition to arm latch 88 - 125 - 150 - 300 - 600 - ns 3-7 tpdh peripheral data hold after ca1, cb1 transition 10 - 20 - 20 - 20 - 20 - ns 3-7 note: see figure 3-12 for test load
the western design center, inc. w65c22s data sheet the western design center w65c22s 39 3.4 timing diagrams. note: measurement points are at 50% of vdd unless otherwise specified. figure 3-2 read timing figure 3-3 write timing tcyc tpwh tr tf tpwl tcar tacr tf phi2 address cs, rs, etc r/wb peripheral data ca1, cb2 data bus tpcr tcdr thr tpwl tpwh tpcw tcyc tr tf tcaw tacw address cs, rs, etc r/wb phi2 peripheral data ca1, cb2 data bus tcdw thw
the western design center, inc. w65c22s data sheet the western design center w65c22s 40 figure 3-4 read handshake, pulse mode (ca2) figure 3-5 read handshake, handshake mode timing (ca2) phi2 read ira operation ca2 ?data taken? tca2 trs1 phi2 read ira operation ca2 ?data taken? ca1 ?data taken? tca2 trs2 active transition
the western design center, inc. w65c22s data sheet the western design center w65c22s 41 figure 3-6 write handshake, pu lse mode timing (ca2, cb2) figure 3-7 write handshake, ha ndshake mode timing (ca2, cb2) phi2 write, ora, orb operation ca2, cb2 ?data taken? pa, pb peripheral data twhs tds trs3 phi2 write ora, orb operation ca2, cb2 ?data ready? pa, pb peripheral data tds trs4 active transition t21 twhs ca1, cb1 ?data taken?
the western design center, inc. w65c22s data sheet the western design center w65c22s 42 figure 3-8 peripheral data , input latching timing figure 3-9 data shift out, internal or external shift clock timing figure 3-10 data shift in, internal or external shift clock timing tsr2 phi2 cb2 shift data (input) cb1 shift clock (input or output) tsr3 setup time measured from the first phi12 rising edge after cb1 rising edge cb1 shift clock (input or output) cb2 shift data (out0put) phi2 tsr1 delay time measured from the first phi2 falling edge after cb1 falling edge pa, pb peripheral input data ca1, cb1 input latching control t1l tpdh ta l active transition
the western design center, inc. w65c22s data sheet the western design center w65c22s 43 figure 3-10 external shift clock timing figure 3-11 pulse count input timing figure 3-12 test load (all dynamic parameters) cb1 shift clock input pb6 pulse count input tics active transition ticw tipw tips pin c pf 12k ? ?
the western design center, inc. w65c22s data sheet the western design center w65c22s 44 irqb irq old w65c22 irqb irq new w65c22s resb resb 4. section 4 caveats 4.1 caveats 1. on older versions of the 6522 and 65c22, which are not internally chip-selected, random register are read due to register select values. the w65c22s selects only register 15 ($f) internally. this feature has been added for systems which have indeterminate register select values. 2. when outputting the shift clock, the cb1 pin may be overdriven without affecting the shifting function. however, this is not recommended as it will result in high currents and possible damage to the part. because some systems have been arbitrating the clock after data has been transferred, this feature was added. 3. there is a major design difference between the w65c22s and all previous versions of the 6522 and 65c22. the irqb pin on the w65c22s is a standard totem pole output. it is no longer open drain and cannot be wire or'ed. this change was made to improve the low power, high speed characteristics of the part. figure 4-1 irqb difference 4. all w65c22s pins except phi2 have bus holdi ng devices. the original nmos 6522, g65c22 and r65c22 did not have bus holding devices. figure 4-2 high resistance bus holding device 5. the w65c22s output pins do not have current limiting and can over drive circuitry connected to these pins. the original nmos 6522 had current limiting resistors in series with pb and pa outputs. old w65c22 reset new w65c22s reset high resistance bus holding device
the western design center, inc. w65c22s data sheet the western design center w65c22s 45 5. section 5 hard core model application notes 5.1 the w65c22c is functionally equivalent to the w65c22s ex cept it does not have the output drive transistors and does not have esd protection. 5.2 if chip select, cs1 is not used, it should be held in the high state. if chip select, cs2b, is not used it should be held in the low state. 5.3 the timing of the w65c22c is the same as the w65c22s in that the input buffers are the same and the output transistor drivers are the same as the w65c22s. when applying the w65c22s core, the output delays should be analyzed after adding the output drive transistors and the output load capacitance.
the western design center, inc. w65c22s data sheet the western design center w65c22s 46 6. section 6 ordering information w65c22s6tplg-14 description w65c w65c = standard product product identification number 22s foundry process 6t = 0.6u tsmc process 6t package pl p = plastic dual-in-line, 40 pins pl = plastic leaded chip carrier, 44 pins q = quad flat pack, 44 pins rohs/green compliance g = rohs/green compliant (wafer and packaging) g temperature/processing blank = -40 o c to + 85 o c speed designator -14 = 14mhz -14 ____________________________________________________________________________________ to receive general sales or technical support on standard product or information about our module library licenses, contact us at: the western design center, inc. 2166 east brown road mesa, arizona 85213 usa phone: 480-962-4545 fax: 480-835-6442 e-mail: information@westerndesigncenter.com www.westerndesigncenter.com _______________________________________________________________________________________ warning: mos circuits are subject to damage from static electrical charge buildups. industry established recommenda tions for handling mos circuits include: 1. ship and store product in conductive shipping tubes or conductive foam plastic. never ship or store product in non-conductive plastic containers or non-conductive plastic foam material. 2. handle mos parts only at conductive work stations. 3. ground all assembly and repair tools.


▲Up To Search▲   

 
Price & Availability of W65C22S6TPG-14

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X